package com.orphan.marketBack.service;

import com.orphan.marketBack.po.Purchase;
import com.orphan.marketBack.vo.ResultVO;

import java.util.List;

public interface PurchaseService {
    /**
     * 添加采购单信息到数据库
     * @param purchase
     * @return
     */
    boolean insert(Purchase purchase);

    /**
     * 获得所有采购单信息
     * @return
     */
    ResultVO selectPurchase();

    /**
     * 根据采购单进行查询
     * @param purchaseId
     * @return
     */
    ResultVO selectPurchaseById(String purchaseId);
}
